package com.liang.jiekou.controller;

import com.liang.jiekou.entity.Result;
import com.liang.jiekou.entity.vo.CmsmqVo;
import com.liang.jiekou.mapper.CMSMQMapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: LiangPanDeng
 * @Date: 2024/02/27/15:00
 * @Description:
 */
@Api(tags = "单据性质控制器")
@RestController
@RequestMapping("/djxz")
public class CMSMQController {

    @Resource
    private CMSMQMapper cmsmqMapper;

    @ApiOperation("查看领料单单据性质")
    @GetMapping("/lldList")
    public Result<List<CmsmqVo>> lldList(){
        List<CmsmqVo> list = cmsmqMapper.selectVoByMq003("54");
        return  Result.success(list);
    }

    @ApiOperation("查看退料单单据性质")
    @GetMapping("/tldList")
    public Result<List<CmsmqVo>> tldList(){
        List<CmsmqVo> list = cmsmqMapper.selectVoByMq003("56");
        return  Result.success(list);
    }
}
